package cn.oms.oms.service;

import cn.oms.oms.entity.Appointment;
import cn.oms.oms.vo.AppointmentVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-29
 */
public interface IAppointmentService extends IService<Appointment> {

    /**
     * 查询预约挂号列表
     * @param appointmentVo
     * @return
     */
    PageInfo<Appointment> selectAppointmentList(AppointmentVo appointmentVo);

    /**
     * 查询患者详情
     * @param appointmentVo
     * @return
     */
    Appointment selectPatientDetail(AppointmentVo appointmentVo);

    /**
     * 新增预约挂号
     * @param appointmentVo
     * @return
     */
    String addAppointment(AppointmentVo appointmentVo);

    /**
     * 修改预约挂号
     * @param appointmentVo
     * @return
     */
    String updateAppointment(AppointmentVo appointmentVo);

    /**
     * 删除预约挂号
     * @param id
     * @return
     */
    String deleteAppointment(Integer id);

}
